<?php
/**
 * 运营-运营总表核验
 * (model)
 */
namespace App\Models\Operation;

use App\Models\Basics\SysCountry;
use App\Models\Product\ProductClassify;
use Illuminate\Database\Eloquent\Model;
class TCTotal extends Model
{
    protected $table = 'operation_total_check';

    protected $guarded = [];

    public function detail(){
        return $this->hasMany(TCTotalDetail::class,'tc_id');
    }

    public function country(){
        return $this->belongsTo(SysCountry::class, 'country_id');
    }

    public function classify(){
        return $this->belongsTo(ProductClassify::class, 'classify_id');
    }
}
